package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 用户消费记录表
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:09
 */
@Getter
@Setter
@TableName("t_user_consume_detail")
@ApiModel(value = "UserConsumeDetail对象", description = "用户消费记录表")
public class UserConsumeDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户消费记录ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("提现ID")
    @TableField("user_payout_id")
    private Long userPayoutId;

    @ApiModelProperty("金额")
    @TableField("consumption_price")
    private BigDecimal consumptionPrice;

    @ApiModelProperty("消费类型（ADD=收入，REDUCE=消费 ，PAYOUT=提现）")
    @TableField("consumption_type")
    private String consumptionType;

    @ApiModelProperty("描述")
    @TableField("consumption_describe")
    private String consumptionDescribe;

    @ApiModelProperty("逻辑删除（0=未删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
